package com.music.music.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.music.common.core.annotation.Excel;
import com.music.common.core.web.domain.BaseEntity;

/**
 * 用户收藏对象 collect
 *
 * @author ruoyi
 * @date 2024-10-22
 */
public class Collect extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 用户id */
    @Excel(name = "用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long collectUserId;

    /** 音乐id */
    @Excel(name = "音乐id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long collectMusicId;

    public void setCollectUserId(Long collectUserId) {
        this.collectUserId = collectUserId;
    }

    public Long getCollectUserId() {
        return collectUserId;
    }

    public void setCollectMusicId(Long collectMusicId) {
        this.collectMusicId = collectMusicId;
    }

    public Long getCollectMusicId() {
        return collectMusicId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("collectUserId", getCollectUserId())
                .append("collectMusicId", getCollectMusicId())
                .toString();
    }
}
